ARG LOGSTASH_VERSION
FROM logstash:${LOGSTASH_VERSION}
MAINTAINER "lin <kolinhu@126.com>"
LABEL version="1.0.1" description="根据官方镜像，更改使用" by="es"

# 大概也许可能是文件编码问题 选择压缩jar，容器内解压
ADD ./jar/mysql-connector-java-8.0.11.jar.gz /usr/share/logstash/logstash-core/lib/jars
RUN gunzip -d /usr/share/logstash/logstash-core/lib/jars/mysql-connector-java-8.0.11.jar.gz